// 展开菜单
var liList = document.getElementsByClassName("navList")
var olList = document.getElementsByClassName("show")
for(var i = 0;i < liList.length;i++){
    liList[i].index = i
    liList[i].onclick = function(){
         var n = olList[this.index]
         console.log(n)
         if(n.style.display === "block"){
             n.style.display = "none"
         }else{
             for(var j = 0;j < olList.length;j++){
                 olList[j].style.display = "none"
             }
             olList[this.index].style.display = "block"
         }
    }
}